﻿using System;
using NBus.Practice.GreetingMessage;
using NServiceBus;

namespace NBus.Practice.GreetingSubscriber
{
    public class Congratulation:IHandleMessages<GreetingEvent>
    {
        public void Handle(GreetingEvent message)
        {
            Console.WriteLine("Received greeting event id:{0}, time{1}, congratulations, you have learned NServiceBus.",message.Id,message.Times);
        }
    }
}